b47ec782fe4e09e38b9e157ad87a0407b5e83820,clc/modules/cluster-manager/src/main/java/com/eucalyptus/address/Address.java,Address,release,#,277

Before Change


  }
  
  public Address release( ) {
    this.transition( State.allocated, State.unallocated, false, true, new SplitTransition( Transition.unallocating ) {
      public void top( ) {
        EventRecord.here( Address.class, EventClass.ADDRESS, EventType.ADDRESS_RELEASE, "user=" + Address.this.userId, "address=" + Address.this.name,
                          Address.this.isSystemOwned( ) ? "SYSTEM" : "USER" ).info( );
        Address.this.instanceId = UNASSIGNED_INSTANCEID;
        Address.this.instanceAddress = UNASSIGNED_INSTANCEADDR;
        Address.this.userId = UNALLOCATED_USERID;
        Address.removeAddress( Address.this.name );
        Address.this.state.attemptMark( State.unallocated, false );
      }
      
      public void bottom( ) {}
    } );
    return this;
  }
  

After Change


  }
  
  public Address release( ) {
    SplitTransition release = new SplitTransition( Transition.unallocating ) {
      public void top( ) {
        EventRecord.here( Address.class, EventClass.ADDRESS, EventType.ADDRESS_RELEASE, "user=" + Address.this.userId, "address=" + Address.this.name,
                          Address.this.isSystemOwned( ) ? "SYSTEM" : "USER" ).info( );
        Address.this.instanceId = UNASSIGNED_INSTANCEID;
        Address.this.instanceAddress = UNASSIGNED_INSTANCEADDR;
        Address.this.userId = UNALLOCATED_USERID;
        Address.removeAddress( Address.this.name );
        super.bottom( );
      }
    };
    if( State.impending.equals( this.state.getReference( ) ) ) {
      this.transition( State.impending, State.unallocated, true, true, release );
    } else {
      this.transition( State.allocated, State.unallocated, false, true, release );
    }
    return this;
  }